home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
- Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
- Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
- Begin VB.Form frmWriter
- BackColor = &H8000000A&
- BorderStyle = 1 'Fest Einfach
- Caption = "Easy Writer"
- ClientHeight = 10410
- ClientLeft = 1995
- ClientTop = 330
- ClientWidth = 10995
- LinkTopic = "Form1"
- MDIChild = -1 'True
- ScaleHeight = 10410
- ScaleWidth = 10995
- Begin VB.CommandButton Command21
- BackColor = &H00FFFFFF&
- Caption = "Search"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 9480
- Style = 1 'Grafisch
- TabIndex = 22
- Top = 2040
- Width = 1335
- End
- Begin VB.CommandButton Command20
- BackColor = &H00FFFFFF&
- Caption = "Insert Time"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 7920
- Style = 1 'Grafisch
- TabIndex = 21
- Top = 2040
- Width = 1095
- End
- Begin VB.CommandButton Command19
- BackColor = &H00FFFFFF&
- Caption = "Insert Date"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 7920
- Style = 1 'Grafisch
- TabIndex = 20
- Top = 1560
- Width = 1095
- End
- Begin VB.CommandButton Command18
- BackColor = &H00FFFFFF&
- Caption = "Paste"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 120
- Style = 1 'Grafisch
- TabIndex = 19
- Top = 2040
- Width = 1095
- End
- Begin VB.CommandButton Command17
- BackColor = &H00FFFFFF&
- Caption = "Cut"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 1320
- Style = 1 'Grafisch
- TabIndex = 18
- Top = 1560
- Width = 1095
- End
- Begin VB.CommandButton Command16
- BackColor = &H00FFFFFF&
- Caption = "Copy"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 120
- Style = 1 'Grafisch
- TabIndex = 17
- Top = 1560
- Width = 1095
- End
- Begin VB.CommandButton Command15
- BackColor = &H00FFFFFF&
- Caption = "Print"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 1320
- Style = 1 'Grafisch
- TabIndex = 16
- Top = 2040
- Width = 1095
- End
- Begin VB.CommandButton Command14
- BackColor = &H00FFFFFF&
- Caption = "Save"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 120
- Style = 1 'Grafisch
- TabIndex = 15
- Top = 720
- Width = 1095
- End
- Begin VB.CommandButton Command12
- BackColor = &H00FFFFFF&
- Caption = "Open"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 120
- Style = 1 'Grafisch
- TabIndex = 14
- Top = 240
- Width = 1095
- End
- Begin VB.CommandButton Command10
- BackColor = &H00FFFFFF&
- Caption = "Exit"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 1320
- Style = 1 'Grafisch
- TabIndex = 13
- Top = 720
- Width = 1095
- End
- Begin VB.CommandButton Command9
- BackColor = &H00FFFFFF&
- Caption = "New"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 1320
- Style = 1 'Grafisch
- TabIndex = 12
- Top = 240
- Width = 1095
- End
- Begin MSComDlg.CommonDialog CommonDialog1
- Left = 10200
- Top = 360
- _ExtentX = 847
- _ExtentY = 847
- _Version = 393216
- End
- Begin MSComctlLib.Slider Slider1
- Height = 375
- Left = 0
- TabIndex = 10
- Top = 2760
- Width = 11055
- _ExtentX = 19500
- _ExtentY = 661
- _Version = 393216
- End
- Begin VB.CommandButton Command8
- BackColor = &H00FFFFFF&
- Caption = "Color"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 3000
- Style = 1 'Grafisch
- TabIndex = 9
- Top = 2040
- Width = 1095
- End
- Begin VB.CommandButton Command7
- BackColor = &H00FFFFFF&
- Caption = "Font"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 3000
- Style = 1 'Grafisch
- TabIndex = 8
- Top = 1560
- Width = 1095
- End
- Begin VB.CommandButton Command6
- Height = 375
- Left = 7080
- Picture = "writer.frx":0000
- Style = 1 'Grafisch
- TabIndex = 7
- Top = 2040
- Width = 375
- End
- Begin VB.CommandButton Command5
- Height = 375
- Left = 5160
- Picture = "writer.frx":038E
- Style = 1 'Grafisch
- TabIndex = 6
- Top = 2040
- Width = 375
- End
- Begin VB.CommandButton Command4
- Height = 375
- Left = 6120
- Picture = "writer.frx":06EA
- Style = 1 'Grafisch
- TabIndex = 5
- Top = 2040
- Width = 375
- End
- Begin VB.CommandButton Command3
- Height = 375
- Left = 5640
- Picture = "writer.frx":0A31
- Style = 1 'Grafisch
- TabIndex = 4
- Top = 2040
- Width = 375
- End
- Begin VB.CommandButton Command2
- Height = 375
- Left = 6600
- Picture = "writer.frx":0D38
- Style = 1 'Grafisch
- TabIndex = 3
- Top = 2040
- Width = 375
- End
- Begin VB.CommandButton Command1
- Height = 375
- Left = 4680
- Picture = "writer.frx":10F6
- Style = 1 'Grafisch
- TabIndex = 2
- Top = 2040
- Width = 375
- End
- Begin RichTextLib.RichTextBox RichTextBox1
- Height = 6975
- Left = 0
- TabIndex = 0
- Top = 3120
- Width = 11055
- _ExtentX = 19500
- _ExtentY = 12303
- _Version = 393217
- Enabled = -1 'True
- ScrollBars = 2
- TextRTF = $"writer.frx":1449
- End
- Begin MSComctlLib.StatusBar StatusBar1
- Align = 2 'Unten ausrichten
- Height = 300
- Left = 0
- TabIndex = 1
- Top = 10110
- Width = 10995
- _ExtentX = 19394
- _ExtentY = 529
- _Version = 393216
- BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
- NumPanels = 3
- BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- Style = 5
- TextSave = "21:00"
- EndProperty
- BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- Style = 6
- TextSave = "09.10.99"
- EndProperty
- BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- Style = 2
- Enabled = 0 'False
- TextSave = "NUM"
- EndProperty
- EndProperty
- End
- Begin VB.Frame Frame1
- Height = 1215
- Left = 0
- TabIndex = 23
- Top = 0
- Width = 2535
- End
- Begin VB.Frame Frame2
- Height = 1215
- Left = 0
- TabIndex = 24
- Top = 1320
- Width = 2535
- End
- Begin VB.Frame Frame3
- Height = 1215
- Left = 2880
- TabIndex = 25
- Top = 1320
- Width = 1335
- End
- Begin VB.Frame Frame4
- Height = 735
- Left = 4560
- TabIndex = 26
- Top = 1800
- Width = 3015
- End
- Begin VB.Frame Frame5
- Height = 1215
- Left = 7800
- TabIndex = 27
- Top = 1320
- Width = 1335
- End
- Begin VB.Frame Frame6
- Height = 735
- Left = 9360
- TabIndex = 28
- Top = 1800
- Width = 1575
- End
- Begin VB.Label Label1
- BeginProperty Font
- Name = "Arial"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 735
- Left = 3240
- TabIndex = 11
- Top = 240
- Width = 5535
- End
- Attribute VB_Name = "frmWriter"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- RichTextBox1.SelBold = Not RichTextBox1.SelBold
- End Sub
- Private Sub Command10_Click()
- Dim Answer
- Answer = MsgBox(Prompt:="Do you really want to close this window?", _
- Title:="Question", _
- Buttons:=vbYesNo + vbQuestion)
- If Answer = vbYes Then
- Unload Me
- mdimain.formcounter = mdimain.formcounter - 1
- Else
- cancel = True
- End If
- End Sub
- Private Sub Command11_Click()
- Private Sub Command12_Click()
- CommonDialog1.CancelError = True
- With CommonDialog1
- .Filter = "Text (*.TXT)|*.TXT|"
- .Filter = .Filter & "RTF (*.RTF)|*.RTF"
- On Error GoTo errhandler:
- CommonDialog1.Flags = cd10FNFileMustExist
- CommonDialog1.ShowOpen
- RichTextBox1.LoadFile CommonDialog1.filename, rtfText
- errhandler:
- Label1.Caption = CommonDialog1.filename
- Me.Caption = CommonDialog1.filename
- End With
- End Sub
- Private Sub Command14_Click()
- On Error GoTo errhandler
- CommonDialog1.CancelError = True
- With CommonDialog1
- .Filter = "Text (*.TXT)|*.TXT|"
- .Filter = .Filter & "RTF (*.RTF)|*.RTF"
-
- CommonDialog1.ShowSave
- If CommonDialog1.filename <> "" Then
- Open CommonDialog1.filename For Output As #1
- Print #1, RichTextBox1.Text
- Close #1
- End If
- errhandler:
- End With
- End Sub
- Private Sub Command15_Click()
- RichTextBox1.SelPrint (Printer.hDC)
- End Sub
- Private Sub Command16_Click()
- Clipboard.SetText RichTextBox1.SelText
- End Sub
- Private Sub Command17_Click()
- Clipboard.SetText RichTextBox1.SelText
- RichTextBox1.SelText = ""
- End Sub
- Private Sub Command18_Click()
- RichTextBox1.SelText = Clipboard.GetText
- End Sub
- Private Sub Command19_Click()
- Wrap$ = Chr$(13) & Chr$(10)
- RichTextBox1.Text = Date & Wrap$ & RichTextBox1.Text
- End Sub
- Private Sub Command2_Click()
- RichTextBox1.SelText = LCase(RichTextBox1.SelText)
- End Sub
- Private Sub Command21_Click()
- Dim SearchStr As String
- Dim FoundPos As Integer
- SearchStr = InputBox("Insert a word", "Find")
- If SearchStr <> "" Then
-
- FoundPos = RichTextBox1.Find(SearchStr, , , _
- rtfWholeWord)
-
- If FoundPos <> -1 Then
-
- RichTextBox1.Span " ", True, True
- Else
- MsgBox "Couldn't find the word", , "Suchen"
- End If
- End If
- End Sub
- Private Sub Command20_Click()
- Wrap$ = Chr$(13) & Chr$(10)
- RichTextBox1.Text = Time & Wrap$ & RichTextBox1.Text
- End Sub
- Private Sub Command3_Click()
- RichTextBox1.SelItalic = Not RichTextBox1.SelItalic
- End Sub
- Private Sub Command4_Click()
- RichTextBox1.SelStrikeThru = Not RichTextBox1.SelStrikeThru
- End Sub
- Private Sub Command5_Click()
- RichTextBox1.SelUnderline = Not RichTextBox1.SelUnderline
- End Sub
- Private Sub Command6_Click()
- RichTextBox1.SelText = UCase(RichTextBox1.SelText)
- End Sub
- Private Sub Command7_Click()
- CommonDialog1.CancelError = True
- On Error GoTo errhandler:
- CommonDialog1.Flags = cdlCFEffects Or cdlCFBoth
- CommonDialog1.ShowFont
- RichTextBox1.SelFontName = CommonDialog1.FontName
- RichTextBox1.SelFontSize = CommonDialog1.FontSize
- RichTextBox1.SelColor = CommonDialog1.Color
- RichTextBox1.SelBold = CommonDialog1.FontBold
- RichTextBox1.SelItalic = CommonDialog1.FontItalic
- RichTextBox1.SelUnderline = CommonDialog1.FontUnderline
- RichTextBox1.SelStrikeThru = CommonDialog1.FontStrikethru
- errhandler:
- End Sub
- Private Sub Command8_Click()
- CommonDialog1.CancelError = True
- On Error GoTo errhandler:
- CommonDialog1.ShowColor
- RichTextBox1.SelColor = CommonDialog1.Color
- errhandler:
- End Sub
- Private Sub Command9_Click()
- Label1.Caption = ""
- RichTextBox1.Text = ""
- End Sub
- Private Sub Form_Load()
- Slider1.Left = RichTextBox1.Left
- Slider1.Width = RichTextBox1.Width
- Slider1.Max = RichTextBox1.Width
- Slider1.TickFrequency = Slider1.Max * 0.1
- Slider1.LargeChange = Slider1.Max * 0.1
- Slider1.SmallChange = Slider1.Max * 0.01
- End Sub
- Private Sub Form_QueryUnload(cancel As Integer, UnloadMode As Integer)
- Dim Answer
- Answer = MsgBox(Prompt:="Do you really want to close this window?", _
- Title:="Question", _
- Buttons:=vbYesNo + vbQuestion)
- If Answer = vbYes Then
- Unload Me
- mdimain.formcounter = mdimain.formcounter - 1
- Else
- cancel = True
- End If
- End Sub
-